<div class="shimio"  style="overflow: auto;">
  <div class="shimname">
	    <span style="float:left;">
		  <% if logged_in? && is_admin? %> 
		    <%= link_to h(user.name), user %>
		  <% else %>
		    <%= user.name %>
		  <% end %>
    </span>
    <span style="float:right;">
		  <% if logged_in? && is_admin? %>
		    <%= link_to 'Edit', edit_user_path(user) %> | 
		    <%= link_to 'Delete', user, :confirm => (
			  if user==current_user
			    'Are you sure you want to do this?  You will be logged out and your account will be removed.  This cannot be undone.'
			  else
			    'Are you sure you want to delete this user?  This cannot be undone.'
			  end), :method => :delete %>
		  <% end %>
    </span><br/>
  </div>
  
  <% if logged_in? && is_admin? %>
  	<strong>Email : </strong> <i><%=h user.email %></i><br />
  	<strong>Created at : </strong><i><%=h user.created_at %></i><br />
  <% end %>
  <%=h user.name.capitalize %> has a total of 
  <% shim_count = Shim.find(:all, :conditions => {:user_id => user.id}).size %>
  <% if shim_count > 1 %>
  	<%= link_to "#{shim_count} shims", :controller => "shims", :action => "belonging_to", :user_id => user.id %>.<br />
  <% elsif shim_count == 1 %>
    <%= link_to "1 shim", :controller => "shims", :action => "belonging_to", :user_id => user.id %>.<br />
  <% else %>
    no shims.
  <% end %>
</div>